<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Adminlog Controller
 * Build by Phuc Nguyen
 * Contact : nguyenvanphuc0626@gmail.com
 */

class Ticket_model extends MY_Model{
	
	public function __construct(){
		parent::__construct();
		$this->table_name = 'book_ticket';
	}
        
        public function insertTicketInfo($params){
                $this->ticket_model->create($params);
                $result = $this->db->affected_rows();
                if(!$result){
                    die("Insert db ".$this->table_name.' fail!');
                }
                return $result;
        }
        
        
}